home *** CD-ROM | disk | FTP | other *** search
- /* VBL tasks.
- 93/12/31 aih split out of ApplicationLib.c */
-
- #ifndef NDEBUG
-
- #include <Retrace.h>
- #include "VBLTaskLib.h"
-
- /* VBL tasks used while debugging */
-
- /* write an odd value to memory location 0 (the same value used by TMON
- Professional's Nasty0 command) */
- static pascal void VBLNasty0(void)
- {
- asm {
- move.l #0x50FFC003, 0
- move.w #1, VBLTask.vblCount(a0)
- }
- }
-
- /* install VBL tasks */
- void VBLInit(void)
- {
- static VBLTask task;
-
- task.qType = vType;
- task.vblAddr = VBLNasty0;
- task.vblCount = 1;
- (void) VInstall((QElemPtr) &task);
- }
-
- #else /* NDEBUG */
-
- void VBLInit(void)
- {
- }
-
- #endif /* NDEBUG */
-